import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 18,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    viewBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '装置名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '数量',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '位置',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '型式',
        prop: 'p4',
        overHidden: true,
      },
      {
        label: '升降高度',
        prop: 'p5',
        overHidden: true,
      },
      {
        label: '延伸长度',
        prop: 'p6',
        overHidden: true,
      },
      {
        label: '俯仰/旋转角度',
        prop: 'p7',
        overHidden: true,
      },
      {
        label: '电缆规格',
        prop: 'p8',
        overHidden: true,
      },
      {
        label: '船岸连接电缆长度',
        prop: 'p9',
        overHidden: true,
      },
      {
        label: '接插件规格',
        prop: 'p10',
        overHidden: true,
      },
      {
        label: '接插件数量',
        prop: 'p11',
        overHidden: true,
      },
    ]
  }
}
